package juc.c_001;/*
   Talk is cheap. Show me the code.
 */

/**
 * @Description
 * @Date 2021/6/6
 * @Author liudl
 */
public class T3 {
    private int count = 10;

    public synchronized void m(){//等于锁定this
            count--;
            System.out.println(Thread.currentThread().getName()+"count = "+count);
    }

    public static void main(String[] args) {
        new T1().m();
    }
}
